package com.itmg.tools.thread;

import com.itmg.dao.KeywordsDAO;
import com.itmg.dao.bean.ConditionBean;
import com.itmg.factory.DAOFactory;

public class KeywordsSaveThread implements Runnable {
	
	private ConditionBean conditionBean;
	
	public KeywordsSaveThread(ConditionBean conditionBean){
		this.conditionBean = conditionBean;
	}

	@Override
	public void run() {

		KeywordsDAO keywordsDAO = DAOFactory.getKeywordsDAO();
		try {
			keywordsDAO.saveKeywordsAndImage(conditionBean);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
